package com.mowwang.file;

import java.io.*;

public class BufferedL {
    public static void main(String[] args) {
    readLine();
    }
    private static void readLine()  {
        BufferedReader br = null;
        try {
           br=new BufferedReader(new FileReader("a.txt"));

            try {
                String s;
                while ((s=br.readLine())!=null)
                System.out.println(s);
            } catch (IOException e) {
                e.printStackTrace();
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } finally {
            if (br!=null) {
                try {
                    br.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
